﻿@model vngoodlife.MenuList
           

@{
    Layout = null;
}

<div>   
    <p>@Html.ValidationMessage("NoticePage")</p>
    <p>@Html.ValidationMessageFor(model => model.MenuName)</p>
    <p>@Html.ValidationMessageFor(model => model.ControllerName)</p>
    <p>@Html.ValidationMessageFor(model => model.ActionName)</p>
    <p>@Html.ValidationMessageFor(model => model.Location)</p>
</div>

    @using (Html.BeginForm("MenuListCreateSubmit", "MenuList", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
    @Html.AntiForgeryToken(vngoodlife.Util.AntiKey.EditSalt)
    @Html.ValidationSummary(true)
    <div>
        <div class="editor_left2">
            <label>@Html.LabelFor(model => model.MenuName):</label><br />
                    @Html.TextBoxFor(model => model.MenuName, new { Maxlength = "50" })
        </div> 
            <div class="editor_middle2">
            <label>@Html.LabelFor(model => model.MenuTypeID):</label><br />
                    @Html.DropDownListFor(model => model.MenuTypeID, ViewBag.MenuTypeListCreate as SelectList)
        </div>

        <div class="editor_middle2B">
            <label>@Html.LabelFor(model => model.MenuBackEnd):</label><br />
                    @Html.EditorFor(model => model.MenuBackEnd)
        </div>
        <div style=" float:left; margin: 0 60px;">
            <label>@Html.LabelFor(model => model.MenuVisible):</label><br />
                    @Html.EditorFor(model => model.MenuVisible, new { Value = "true" })
        </div>
    </div><br class="clear"/><br />
        
    <div>
        <div class="editor_left2">
            <label>@Html.LabelFor(model => model.ControllerName):</label><br />
                    @Html.TextBoxFor(model => model.ControllerName, new { Maxlength = "100"})
        </div>
       
        <div class="editor_middle2">
            <label>@Html.LabelFor(model => model.ActionName):</label><br />
                    @Html.TextBoxFor(model => model.ActionName, new { Maxlength = "100" })
        </div>

        <div class="editor_middle2B">
            <label>@Html.LabelFor(model => model.Superior):</label><br />
                    @Html.DropDownListFor(model => model.Superior, ViewBag.DDLMenuList as SelectList)
        </div>
    </div><br class="clear"/><br />

    <div>
        <div class="editor_left2">
            <label>@Html.LabelFor(model => model.Image):</label><br />
            <input name="uploadFile" id="uploadFile" type="file" />
        </div>

        <div class="editor_middle2">
            <label>@Html.LabelFor(model => model.Location):</label><br />
                    @Html.TextBoxFor(model => model.Location)
        </div>
    </div><br class="clear"/><br />
        
    <div>
        <div class="editor_left2">
            <label>@Html.LabelFor(model => model.MenuTitle):</label><br />
            @Html.TextBoxFor(model => model.MenuTitle, new { Maxlength = "100" })
        </div>

        <div class="editor_middle2">
            <label>@Html.LabelFor(model => model.MenuDescription):</label><br />
                    @Html.TextBoxFor(model => model.MenuDescription, new { Maxlength = "500" })
        </div>
    </div><br class="clear"/><br />    
        
    <p>
        <input type="submit" value="Tạo Menu" style="margin: 0 2px"/> 
    </p>

    } 
